<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="js/vue.js"></script>
</head>
<body>
    <div id="app">
        <p :style="myStyle">zhangmeng1</p>
        <p :style="[myStyle, myStyle2]">张孟2</p>
    </div>
    <script>
        var vm = new Vue({
            el: '#app',
            data: {
                myStyle: {
                    color: 'blue',
                    fontSize: '30px'
                }, 
                myStyle2: {
                    backgroundColor: '#ccc'
                }
            }
        })
    </script>
</body>
</html>